package com.fast.linkbeanadmin.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * @author ruan cai yuan
 * @version 1.0
 * @fileName com.fast.linkbeanadmin.pojo.dto.SysRoleDO
 * @description: 角色信息表
 * @since 2024/7/21 下午4:52
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_role")
@Data
public class SysRoleDO extends BaseEntity implements Serializable {
    /**
     * 角色名称
     */
    private String roleName;

    /**
     * 角色备注
     */
    private String roleRemark;

    /**
     * 权限Id集合
     */
    @TableField(exist = false)//Mybatis-plus忽略查找
    private List<SysAuthorityDO> authorities;

    private static final long serialVersionUID = 1L;

}